package org.fungene.controller;

import java.io.BufferedReader;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

public class DrawController extends AbstractController{

	@Override
	protected ModelAndView handleRequestInternal(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		BufferedReader bReader = request.getReader();
		String line="";
		StringBuffer data = new StringBuffer();
		while((line = bReader.readLine()) != null) {
			data.append(line);
		}
		
		System.out.println("aaa: "+ data);
		
		
		
		/*JSONObject resultJSON = new JSONObject();
		JSONObject singleJSON = new JSONObject();
		
		singleJSON.put("width", ChartConstant.PIXEL_X);
		singleJSON.put("height", ChartConstant.PIXEL_Y);
		singleJSON.put("URL", picURL);

		resultJSON.accumulate("picInfo", singleJSON);*/
		
		return null;
	}

}
